package Code.IfElseDemo;

import java.util.Scanner;

//影院选座
public class Test3 {
    public static void main(String[] args) {
        //键盘录入
        Scanner sc = new Scanner(System.in);
        System.out.println("输入票号：");
        int ticket = sc.nextInt();

        //判断
        if (ticket >0 &&  ticket<100){
            if (ticket % 2 == 0){
                System.out.println("右侧");
            }else{
                System.out.println("左侧");
            }
        }else {
            System.out.println("无效票");
        }


    }
}
